home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / CoolMacStacks.sea / Cool Mac Stacks / Building Blocks / FullHPop 1.3 (US) / cards.xml < prev    next >
Text File  |  1991-12-17  |  15KB  |  254 lines

  1. card_3055.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3055</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3273.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2661</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_2488.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <true /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>69</left>
  25.             <top>68</top>
  26.             <right>434</right>
  27.             <bottom>252</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Geneva</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>16</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>154</left>
  57.             <top>261</top>
  58.             <right>258</right>
  59.             <bottom>280</bottom>
  60.         </rect>
  61.         <style>shadow</style>
  62.         <showName> <true /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <true /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>left</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>SubItem 1.2</name>
  74.         <script>on mouseDownget FullHPop(cd fld 2)TestError(it)put it into cd fld "result"if it ‚↠emptythenif item 2 of it ‚↠emptythen put 2 into ItemNbelse put 1 into ItemNbset name of me to item ItemNb of itResizeMe item ItemNb of line 2 of it,"BtnArrow"end ifend mouseDown</script>
  75.     </part>
  76.     <part>
  77.         <id>17</id>
  78.         <type>button</type>
  79.         <visible> <true /> </visible>
  80.         <reserved5> 0 </reserved5>
  81.         <reserved4> 0 </reserved4>
  82.         <reserved3> 0 </reserved3>
  83.         <reserved2> 0 </reserved2>
  84.         <reserved1> 0 </reserved1>
  85.         <enabled> <true /> </enabled>
  86.         <rect>
  87.             <left>243</left>
  88.             <top>263</top>
  89.             <right>258</right>
  90.             <bottom>276</bottom>
  91.         </rect>
  92.         <style>transparent</style>
  93.         <showName> <false /> </showName>
  94.         <highlight> <false /> </highlight>
  95.         <autoHighlight> <false /> </autoHighlight>
  96.         <sharedHighlight> <true /> </sharedHighlight>
  97.         <family>0</family>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>31383</icon>
  100.         <textAlign>center</textAlign>
  101.         <font>Chicago</font>
  102.         <textSize>12</textSize>
  103.         <textStyle>plain</textStyle>
  104.         <name>BtnArrow</name>
  105.         <script>on mouseDownsend mouseDown to btn 1end mouseDown</script>
  106.     </part>
  107.     <part>
  108.         <id>18</id>
  109.         <type>field</type>
  110.         <visible> <true /> </visible>
  111.         <dontWrap> <false /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <false /> </sharedText>
  114.         <fixedLineHeight> <true /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <false /> </lockText>
  117.         <rect>
  118.             <left>324</left>
  119.             <top>263</top>
  120.             <right>492</right>
  121.             <bottom>338</bottom>
  122.         </rect>
  123.         <style>scrolling</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <false /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>left</textAlign>
  132.         <font>Geneva</font>
  133.         <textSize>9</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <textHeight>12</textHeight>
  136.         <name></name>
  137.         <script></script>
  138.     </part>
  139.     <part>
  140.         <id>19</id>
  141.         <type>field</type>
  142.         <visible> <true /> </visible>
  143.         <dontWrap> <false /> </dontWrap>
  144.         <dontSearch> <false /> </dontSearch>
  145.         <sharedText> <false /> </sharedText>
  146.         <fixedLineHeight> <true /> </fixedLineHeight>
  147.         <autoTab> <false /> </autoTab>
  148.         <lockText> <false /> </lockText>
  149.         <rect>
  150.             <left>154</left>
  151.             <top>311</top>
  152.             <right>321</right>
  153.             <bottom>338</bottom>
  154.         </rect>
  155.         <style>rectangle</style>
  156.         <autoSelect> <false /> </autoSelect>
  157.         <showLines> <false /> </showLines>
  158.         <wideMargins> <false /> </wideMargins>
  159.         <multipleLines> <false /> </multipleLines>
  160.         <reservedFamily> 0 </reservedFamily>
  161.         <titleWidth>0</titleWidth>
  162.         <icon>0</icon>
  163.         <textAlign>left</textAlign>
  164.         <font>Geneva</font>
  165.         <textSize>9</textSize>
  166.         <textStyle>plain</textStyle>
  167.         <textHeight>12</textHeight>
  168.         <name>Result</name>
  169.         <script></script>
  170.     </part>
  171.     <part>
  172.         <id>30</id>
  173.         <type>field</type>
  174.         <visible> <true /> </visible>
  175.         <dontWrap> <false /> </dontWrap>
  176.         <dontSearch> <false /> </dontSearch>
  177.         <sharedText> <false /> </sharedText>
  178.         <fixedLineHeight> <true /> </fixedLineHeight>
  179.         <autoTab> <false /> </autoTab>
  180.         <lockText> <true /> </lockText>
  181.         <rect>
  182.             <left>154</left>
  183.             <top>287</top>
  184.             <right>213</right>
  185.             <bottom>304</bottom>
  186.         </rect>
  187.         <style>shadow</style>
  188.         <autoSelect> <false /> </autoSelect>
  189.         <showLines> <false /> </showLines>
  190.         <wideMargins> <false /> </wideMargins>
  191.         <multipleLines> <false /> </multipleLines>
  192.         <reservedFamily> 0 </reservedFamily>
  193.         <titleWidth>0</titleWidth>
  194.         <icon>0</icon>
  195.         <textAlign>left</textAlign>
  196.         <font>Geneva</font>
  197.         <textSize>9</textSize>
  198.         <textStyle>plain</textStyle>
  199.         <textHeight>12</textHeight>
  200.         <name></name>
  201.         <script>on mouseDownget FullHPop("FONT")TestError(it)put it into cd fld "result"if it ‚↠emptythenput item 1 of it into meResizeMe item 1 of line 2 of it,"FldArrow"set textFont of btn 1 to item 1 of itend ifend mouseDown</script>
  202.     </part>
  203.     <part>
  204.         <id>31</id>
  205.         <type>button</type>
  206.         <visible> <true /> </visible>
  207.         <reserved5> 0 </reserved5>
  208.         <reserved4> 0 </reserved4>
  209.         <reserved3> 0 </reserved3>
  210.         <reserved2> 0 </reserved2>
  211.         <reserved1> 0 </reserved1>
  212.         <enabled> <true /> </enabled>
  213.         <rect>
  214.             <left>194</left>
  215.             <top>288</top>
  216.             <right>213</right>
  217.             <bottom>301</bottom>
  218.         </rect>
  219.         <style>transparent</style>
  220.         <showName> <false /> </showName>
  221.         <highlight> <false /> </highlight>
  222.         <autoHighlight> <false /> </autoHighlight>
  223.         <sharedHighlight> <true /> </sharedHighlight>
  224.         <family>0</family>
  225.         <titleWidth>0</titleWidth>
  226.         <icon>31383</icon>
  227.         <textAlign>center</textAlign>
  228.         <font>Chicago</font>
  229.         <textSize>12</textSize>
  230.         <textStyle>plain</textStyle>
  231.         <name>FldArrow</name>
  232.         <script>on mouseDownsend mouseDown to cd fld 4end mouseDown</script>
  233.     </part>
  234.     <content>
  235.         <layer>card</layer>
  236.         <id>1</id>
  237.         <text><span class="style1">                                              </span><span class="style2">FullHPop 1.3</span><span class="style1">                                       </span><span class="style3"> by Fr√©d√©ric RINALDI</span><span class="style1">   Yet another hierarchical popupmenu XFCN? Nope. Once again FullHPop will definitely be the most versatile and powerful popUp XFCN. Among its features:  ‚Ä¢ One param fits 95% of the user‚Äôs needs when dealing with a  popupmenu  ‚Ä¢ Allows control of font & size  ‚Ä¢ Smart enough to capitalize each item and style metacharacter to match     the Human Interface Guidelines.  ‚Ä¢ A special hack has been provided to allow SICN insertion using a   metacharacter (like ^xxx for an ICON).  ‚Ä¢ No need for the user to compute the ICON or SICN ID before passing it.    Simply put the real resource ID after the metacharacter.  ‚Ä¢ Item selection of submenu owner is allowed.  ‚Ä¢ No menu or submenu length limit (32000 chars, 127 submenus)  ‚Ä¢ Any automatic feature can be redefined using parameters  ‚Ä¢ Returns the selected item and subitem string width to allow resizing of    the target object. (like a button, if it is renamed according to the item    you chose).  ‚Ä¢ Automatically checks the menu item according to target name or      contents of field.  ‚Ä¢ Popupmenu pops automatically where it is expected  ‚Ä¢ Builds resources menu.</span><span class="style4">Description</span><span class="style1">   FullHPop displays a popup or hierarchical popup menu and returns the user's selection.</span><span class="style4">Syntax</span><span class="style1"></span><span class="style5">    FullHPop(<menu>[,<loc>][,<selecteditem>]            [,<Font[,size]>][,<checkMark>]            [,<sub owner select>][,"fastest"])</span><span class="style1"></span><span class="style4">Parameters</span><span class="style1">   Only first parameter is required, all other are optional.   </span><span class="style5"><menu></span><span class="style1"> is the popup menu definition text. For a single menu, item separator character can be return, comma or semicolon. For a hierarchical menu, item separator can be a return or semicolon, while subitems separator will be comma.   If this parameter is exactly a four char string (like "FONT" or "XCMD"), the XFCN will automatically build a menu containing all resource names of the defined type.   Any usual metacharacter can be used in string :     ^XXX    associates an ICON resource to the item     !X        puts a X mark char before the item     <X        sets the style of the item (B, I, O, U, S)                NOTE :  Menu Mgr doesn't allow <E (extend) and <C (condense)     /X       associates a command key to the item     (         disables the item   and a special hack :     ¬®XXX    associates an SICN resource to the item   </span><span class="style5"><loc></span><span class="style1"> is a point "h,v" giving the topleft corner of the selected item of the menu when it pops on screen. The Default is the topleft of the target button or field, or the current mouseLoc when used without a field or button.   </span><span class="style5"><selected item> </span><span class="style1">is an integer giving the item number that will appear right at the cursor location when the menu pops. With 0, the menu will drop down from its top. With a positive value, the item will be checked, while a negative value will just position the item without checking it. If this param is not used, the XFCN will automatically check the item corresponding to the the target button name of field content.   </span><span class="style5"><Font[,size]></span><span class="style1"> is a one ot two items string allowing to force a font and size for the menu. Default setup uses the font and size of the target object.  </span><span class="style5"> <checkMark> </span><span class="style1">is a single char that will serve as the checkmark character. Default uses the regular check for Chicago, "‚àö" for any other font.   </span><span class="style5"><sub owner select></span><span class="style1"> is a boolean that will enable of disable the feature that allows to even select an item having a submenu. Default is true.</span><span class="style5">   "fastest"</span><span class="style1"> disables smart features from FullHPop, making it respond as fast as possible. The drawback of it is that items will not be capitalized anymore, ICON ID must be computed as usual (see </span><span class="style3">Inside Macintosh</span><span class="style1"> Vol </span><span class="style3">I - 346 to 349</span><span class="style1">), and SICN recources become unavailable.   Using "!", "?" or "=" as first parameter will return an online help (resp. copyright, syntax and output).</span><span class="style4">Using</span><span class="style1">   The XFCN must be called in a mouseDown handler from either a button or a field.   FullHPop will return a two line result :</span><span class="style5"> "<item name>,<subItem name>,<item number>,<subItem   number><item width>,<subItem width>"</span><span class="style1">   The first line returns information about the selected item and subitem, while the second gives the selection string width according to menu font and size. This information is intended to give the user the ability to resize the calling object to respect interface guidlines.   If the mouse button is released outside the menu, the result will be empty.</span><span class="style4">Errors</span><span class="style1">If an error occurs, FullHPop will return :    </span><span class="style5">   "Error : Bad ICON or SICN ID (257 ‚⧠x ‚⧠511)"     "Error : Cannot exceed 127 submenus"     "Error : Missing or empty parameter(s)"     "Error : Empty param #x"     "Error : Bad font size"     "Error : Incorrect param #x"     "Error : No such resource"</span><span class="style1"></span><span class="style4">History</span><span class="style1">1.3                                                                                            10/26/91‚Ä¢ "-" char can be preceeded by prefix char "\" as well.1.2                                                                                            10/14/91‚Ä¢ Added mouseLoc default loc for card click‚Ä¢ Fixed font attributes handling when no target font property is available‚Ä¢ Fixed prefix char routine1.1                                                                                            10/09/91‚Ä¢¬†Negative loc values now accepted as parameter‚Ä¢¬†Added "\" prefix char for metacharacters in string--------------------------------------------------------------------This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to give full credit and display this copyright information in your stack.Any commercial use must be licensed and aknowledged by the author.</span><span class="style4">                             ¬© F. Rinaldi - 1991       AppleLink: RINALDI1                CalvaCom : FR10                        Compuserve : 71170,2111</span></text>
  238.     </content>
  239.     <content>
  240.         <layer>card</layer>
  241.         <id>18</id>
  242.         <text>Mac SE\/30\!item 1,subItem 1.1,SubItem 1.2,SubItem 1.3^257Item 2<B,subItem 2.1<B,SubItem 2.2<I,(-,<OSubItem 2.3¬®257item 3<i</text>
  243.     </content>
  244.     <content>
  245.         <layer>card</layer>
  246.         <id>30</id>
  247.         <text>Chicago</text>
  248.     </content>
  249.     <name></name>
  250.     <script>on ResizeMe Width,BtNameput rect of the target into TheRectput item 1 of TheRect + Width + 25 into item 3 of theRectset rect of the target to TheRectset right of btn BtName to right of the targetend ResizeMeon TestError Whatif first word of What is "Error"thenbeepanswer Whatexit to HyperCardend ifend TestError</script>
  251. </card>
  252.  
  253.  
  254.